package com.example.module_repair.repairnet

import com.example.lib_net.BaseResponse
import com.example.module_repair.repair_orders.model.CraeateRepairOrderModel
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface RepairApi {


    //获取所有报修工单
    @GET("/api/repair-orders")
    suspend fun getRepairOrders(): BaseResponse<List<RepairModel>>

    //创建报修工单
    @POST("/api/repair-orders")
    suspend fun createRepairOrders(@Body createrepairoremodel: CraeateRepairOrderModel): BaseResponse<String>


}